﻿using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Windows.Input;
using System.Windows.Forms;
using System.Drawing;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;


namespace ContactManager.Tests
{
    /// <summary>
    /// Summary description for SearchViewTests
    /// </summary>
    [CodedUITest]
    public class SearchViewTests
    {
        private TestContext _testContextInstance;
        private UIMap _map;

        public SearchViewTests()
        {
        }

        [TestMethod]
        [TestCategory("UI Test")]
        public void SearchTest()
        {
            UIMap.OpenContactManager();
            UIMap.ClickOnSearch();
            UIMap.AssertOutputText();
            UIMap.CloseContactManager();
        }

        public TestContext TestContext
        {
            set
            {
                _testContextInstance = value;
            }
        }

        public UIMap UIMap
        {
            get
            {
                if ((this._map == null))
                {
                    this._map = new UIMap();
                }

                return this._map;
            }
        }

        private UIMap map;
    }
}
